﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>Alternative machine data patterns</title>
  
  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/sumo/microformat.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/operator/content/Microformats/Microformats.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
     
</head>
<body>
    
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">Alternative machine data patterns</h1>
    <p class="description">This page was design to test some alternative machine data patterns. The IsEqualToISODate method uses date <a href="../documentation/iso-date-normalisation.htm">normalisation and compare</a> methods.</p>
    <p>From: <a href="default.htm">Experimental test suite 1.0</a></p>
    
   	<p>Fromat: <span class="format">hCard</span></p>
   
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a> 
    </p>
    
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    <tbody>
        <tr class="assert">
            <td class="test">vcard[0].bday</td>
            <td class="result">IsEqualToISODate("2008-05-27T00:00:00+0100")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with no content</td>
        </tr>
         <tr class="assert">
            <td class="test">vcard[0].geo.latitude</td>
            <td class="result">IsEqualTo("30.267991")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with no content</td>
        </tr>
        <tr class="assert">
            <td class="test">vcard[0].tz</td>
            <td class="result">IsEqualToISODate("-05:00")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with no content</td>
        </tr>
            <tr class="assert">
            <td class="test">vcard[0].rev</td>
            <td class="result">IsEqualToISODate("2008-01-01T13:45:00")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with no content</td>
        </tr>
        
        <tr class="assert">
            <td class="test">vcard[1].bday</td>
            <td class="result">IsEqualToISODate("2008-05-27T00:00:00+0100")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with only a &amp;nbsp;</td>
        </tr>
         <tr class="assert">
            <td class="test">vcard[1].geo.latitude</td>
            <td class="result">IsEqualTo("30.267991")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with only a &amp;nbsp;</td>
        </tr>
        <tr class="assert">
            <td class="test">vcard[1].tz</td>
            <td class="result">IsEqualToISODate("-05:00")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with only a &amp;nbsp;</td>
        </tr>
            <tr class="assert">
            <td class="test">vcard[1].rev</td>
            <td class="result">IsEqualToISODate("2008-01-01T13:45:00")</td>
            <td class="comment">Test taken value from a text node title 
			attribute with only a &amp;nbsp;</td>
        </tr>


        </tbody>
    </table> 
    
    
    <p>History:</p>
    <ul>
    <li class="history vevent">
        <span class="summary">Created</span>: <abbr class="dtstart" title="2008-05-22">22 May 2008</abbr> 
        <span class="description">by Glenn Jones</span>
    </li>    </ul>
    
    
    
    </div>
  
    <div id="uf">
    	<!-- This may not be the best semantic use of HTML element -->
    
    	<!-- 0 -->
        <div class="vcard">
            
            <div class="fn n"><span class="given-name sort-string">John</span> Doe</div>
                        
            <p>Brithday: <span class="bday">Late May<span class="value" title="2008-05-27T00:00:00+0100"></span></span></p>
            <p>Location: <span class="geo">Brighton<span class="value" title="30.267991;-97.7395680"></span></span></p>
            <p>Time zone: <span class="tz">UK<span class="value" title="-05:00"></span></span></p>
                        
            <div>Profile details:
            	<p>Last updated: <span class="rev">January 1st, 2008 - 13:45<span class="value" title="2008-01-01T13:45:00"></span></span></p>
            </div>
            
        </div>
        
        <!-- 1 -->
           <div class="vcard">
            
            <div class="fn n"><span class="given-name sort-string">John</span> Doe</div>
                        
            <p>Brithday: <span class="bday">Late May<span class="value" title="2008-05-27T00:00:00+0100"></span>&nbsp;</span></p>
            <p>Location: <span class="geo">Brighton<span class="value" title="30.267991;-97.7395680"></span>&nbsp;</span></p>
            <p>Time zone: <span class="tz">UK<span class="value" title="-05:00"></span>&nbsp;</span></p>
                        
            <div>Profile details:
            	<p>Last updated: <span class="rev">January 1st, 2008 - 13:45<span class="value" title="2008-01-01T13:45:00"></span>&nbsp;</span></p>
            </div>
            
        </div>

        
        
        
    </div>
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
      
</body>

</html>